package com.example.database.demo.enums;

import lombok.Getter;

/**
 * @author xionglin
 */
@Getter
public enum AppHttpCodeEnum {

    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败");

    public final int code;
    public final String msg;
    AppHttpCodeEnum(int code, String errorMessage) {
        this.code = code;
        this.msg = errorMessage;
    }

}